/*
 * 保险
 * <p>根据银保监会的文件要求，保险行业财产险公司的车险业务，用户在投保缴费（微信&amp;支付宝&amp;银行卡）之前，必须要完成支付人的实名验证，确保支付人与投保人一致才能缴费。目前实名认证存在四种模式，分别为：中保信模式、上海模式、深圳模式和江苏模式，其中中保信模式和上海模式要求支付机构与实名平台专线对接（已有专线），深圳和江苏是公网对接。因实名平台的接口仅支持有支付牌照的收单机构对接，所以部署一套单独的保险实名认证服务在易宝中台，支撑保险商户业务的正常进行。</p>
 *
 * OpenAPI spec version: 1.0
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.yeepay.yop.sdk.service.insurance.model;

import org.apache.commons.lang3.ObjectUtils;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.HashMap;
import java.util.Map;

/**
 * RealnameAuthCustomerDataDTOResult
 */
public class RealnameAuthCustomerDataDTOResult implements Serializable{

  private static final long serialVersionUID = 1L;

  /**
   * 客户编号
   */
  @JsonProperty("customerNo")
  private String customerNo = null;

  /**
   * 姓名
   */
  @JsonProperty("name")
  private String name = null;

  /**
   * 证件类型
   */
  @JsonProperty("critType")
  private String critType = null;

  /**
   * 证件号码
   */
  @JsonProperty("critCode")
  private String critCode = null;

  /**
   * 联系电话
   */
  @JsonProperty("mobile")
  private String mobile = null;

  public RealnameAuthCustomerDataDTOResult customerNo(String customerNo) {
    this.customerNo = customerNo;
    return this;
  }

   /**
   * 客户编号
   * @return customerNo
  **/

  public String getCustomerNo() {
    return customerNo;
  }

  public void setCustomerNo(String customerNo) {
    this.customerNo = customerNo;
  }

  public RealnameAuthCustomerDataDTOResult name(String name) {
    this.name = name;
    return this;
  }

   /**
   * 姓名
   * @return name
  **/

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public RealnameAuthCustomerDataDTOResult critType(String critType) {
    this.critType = critType;
    return this;
  }

   /**
   * 证件类型
   * @return critType
  **/

  public String getCritType() {
    return critType;
  }

  public void setCritType(String critType) {
    this.critType = critType;
  }

  public RealnameAuthCustomerDataDTOResult critCode(String critCode) {
    this.critCode = critCode;
    return this;
  }

   /**
   * 证件号码
   * @return critCode
  **/

  public String getCritCode() {
    return critCode;
  }

  public void setCritCode(String critCode) {
    this.critCode = critCode;
  }

  public RealnameAuthCustomerDataDTOResult mobile(String mobile) {
    this.mobile = mobile;
    return this;
  }

   /**
   * 联系电话
   * @return mobile
  **/

  public String getMobile() {
    return mobile;
  }

  public void setMobile(String mobile) {
    this.mobile = mobile;
  }


  @Override
  public boolean equals(java.lang.Object o) {
  if (this == o) {
    return true;
  }
  if (o == null || getClass() != o.getClass()) {
    return false;
  }
    RealnameAuthCustomerDataDTOResult realnameAuthCustomerDataDTOResult = (RealnameAuthCustomerDataDTOResult) o;
    return ObjectUtils.equals(this.customerNo, realnameAuthCustomerDataDTOResult.customerNo) &&
    ObjectUtils.equals(this.name, realnameAuthCustomerDataDTOResult.name) &&
    ObjectUtils.equals(this.critType, realnameAuthCustomerDataDTOResult.critType) &&
    ObjectUtils.equals(this.critCode, realnameAuthCustomerDataDTOResult.critCode) &&
    ObjectUtils.equals(this.mobile, realnameAuthCustomerDataDTOResult.mobile);
  }

  @Override
  public int hashCode() {
    return ObjectUtils.hashCodeMulti(customerNo, name, critType, critCode, mobile);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class RealnameAuthCustomerDataDTOResult {\n");
    
    sb.append("    customerNo: ").append(toIndentedString(customerNo)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    critType: ").append(toIndentedString(critType)).append("\n");
    sb.append("    critCode: ").append(toIndentedString(critCode)).append("\n");
    sb.append("    mobile: ").append(toIndentedString(mobile)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

  private final Map<String, Object> _extParamMap = new HashMap<>();

  @JsonAnySetter
  public Map<String, Object> addParam(String name, Object value) {
    if (null != name && null != value) {
      _extParamMap.put(name, value);
    }
    return _extParamMap;
  }

  @JsonAnyGetter
  public Map<String, Object> get_extParamMap() {
    return _extParamMap;
  }

  @JsonIgnore
  public <T> T get_extParam(String name) {
    return (T) _extParamMap.get(name);
  }

}

